package com.example.pay.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("member_order")
public class MemberOrder {
    @TableId(type = IdType.AUTO)
    private Long id;

    private String orderCode;
    private String productType;
    private Long productId;
    private Integer purchaseType; // 1-微信 2-支付宝 3-积分
    private BigDecimal payAmount;
    private Integer orderStatus = 0; // 业务自定义枚举
    private Integer payStatus = 0; // 0未支付 1已支付 2退款
    private String userId;
    private String userName;
    private String userPhone;
    private LocalDateTime orderTime;
    private LocalDateTime createTime = LocalDateTime.now();
}
